----------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  ...\1805 Roadmaps\Table A7.log
  log type:  text
 opened on:  14 Jun 2018, 11:56:05

. 
. set seed Xd4e7cf4546c069fbfcba0e1d6cb9da9400043772

. 
. probit vote_leemar ///
>      con con_D1 ///
>      vgd vgd_D1 ///
>      pty pty_D1 ///
>      psi psi_D1 ///
>      psp psp_D1 ///
>      , noconstant

Iteration 0:   log likelihood = -176.05938  
Iteration 1:   log likelihood = -139.33934  
Iteration 2:   log likelihood = -138.54587  
Iteration 3:   log likelihood = -138.53602  
Iteration 4:   log likelihood = -138.53602  

Probit regression                                 Number of obs   =        254
                                                  Wald chi2(10)   =      59.91
Log likelihood = -138.53602                       Prob > chi2     =     0.0000

------------------------------------------------------------------------------
 vote_leemar |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         con |  -.7072172   .2115841    -3.34   0.001    -1.121914     -.29252
      con_D1 |  -.1368431   .2809339    -0.49   0.626    -.6874635    .4137772
         vgd |   -.498068   .2089877    -2.38   0.017    -.9076764   -.0884597
      vgd_D1 |   .6953697   .2563992     2.71   0.007     .1928364    1.197903
         pty |  -1.306447   .3557676    -3.67   0.000    -2.003739   -.6091557
      pty_D1 |   .9815918   .3919961     2.50   0.012     .2132937     1.74989
         psi |  -.7049294   .2315626    -3.04   0.002    -1.158784    -.251075
      psi_D1 |   .7172086   .3085465     2.32   0.020     .1124687    1.321949
         psp |  -.8809752   .2345279    -3.76   0.000    -1.340641   -.4213089
      psp_D1 |   .5760138     .28925     1.99   0.046     .0090943    1.142933
------------------------------------------------------------------------------

. 
. tabstat d1 if e(sample), s(n mean sd min p25 p50 p75 max)

    variable |         N      mean        sd       min       p25       p50       p75       max
-------------+--------------------------------------------------------------------------------
          d1 |       254   .356248  .7152628    -1.848     -.141      .325      .895     1.856
----------------------------------------------------------------------------------------------

. 
. 
. estsimp probit vote_leemar ///
>      con con_D1 ///
>      vgd vgd_D1 ///
>      pty pty_D1 ///
>      psi psi_D1 ///
>      psp psp_D1 ///
>      , noconstant

Iteration 0:   log likelihood = -176.05938
Iteration 1:   log likelihood = -140.00759
Iteration 2:   log likelihood = -138.61622
Iteration 3:   log likelihood = -138.53658
Iteration 4:   log likelihood = -138.53602

Probit regression                                 Number of obs   =        254
                                                  LR chi2(10)     =          .
Log likelihood = -138.53602                       Prob > chi2     =          .

------------------------------------------------------------------------------
 vote_leemar |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         con |  -.7072172   .2115841    -3.34   0.001    -1.121914     -.29252
      con_D1 |  -.1368431   .2809339    -0.49   0.626    -.6874635    .4137772
         vgd |   -.498068   .2089877    -2.38   0.017    -.9076764   -.0884597
      vgd_D1 |   .6953697   .2563992     2.71   0.007     .1928364    1.197903
         pty |  -1.306447   .3557507    -3.67   0.000    -2.003706   -.6091889
      pty_D1 |   .9815918   .3919805     2.50   0.012     .2133243    1.749859
         psi |  -.7049294   .2315626    -3.04   0.002    -1.158784    -.251075
      psi_D1 |   .7172086   .3085465     2.32   0.020     .1124687    1.321949
         psp |  -.8809752   .2345279    -3.76   0.000    -1.340641   -.4213089
      psp_D1 |   .5760138     .28925     1.99   0.046     .0090943    1.142933
------------------------------------------------------------------------------

Simulating main parameters.  Please wait....

Note: Clarify is expanding your dataset from 278 observations to 1000
observations in order to accommodate the simulations.  This will append
missing values to the bottom of your original dataset.

% of simulations completed: 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% 

Number of simulations  : 1000
Names of new variables : b1 b2 b3 b4 b5 b6 b7 b8 b9 b10

. 
. 
. setx median

. setx con 1

. setx con_D1 .325

. simqi, pr listx

You have set the following values for the explanatory variables:

------------------------------------
 Variable |    Value     Description
----------+-------------------------
      con |         1         1     
   con_D1 |      .325        .325   
      psi |         0       median  
   psi_D1 |         0       median  
      psp |         0       median  
   psp_D1 |         0       median  
      pty |         0       median  
   pty_D1 |         0       median  
      vgd |         0       median  
   vgd_D1 |         0       median  
------------------------------------


Quantities of interest based on those explanatory values:

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(vote_l~r=0) |   .7710891     .0598704     .6396734    .8735954
            Pr(vote_l~r=1) |   .2289109     .0598704     .1264046    .3603266

. 
. simqi, fd(prval(1) genpr(fd_con)) changex(con_D1 -.141 .895)

First Difference: con_D1 -.141 .895

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
         dPr(vote_l~r = 1) |  -.0337682     .0871739    -.1965786    .1485114

Simqi generated the following new variable(s): fd_con

. 
. 
. setx con_D1 0

. simqi, pr listx

You have set the following values for the explanatory variables:

------------------------------------
 Variable |    Value     Description
----------+-------------------------
      con |         1         1     
   con_D1 |         0         0     
      psi |         0       median  
   psi_D1 |         0       median  
      psp |         0       median  
   psp_D1 |         0       median  
      pty |         0       median  
   pty_D1 |         0       median  
      vgd |         0       median  
   vgd_D1 |         0       median  
------------------------------------


Quantities of interest based on those explanatory values:

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(vote_l~r=0) |   .7590751      .064119     .6181508     .869072
            Pr(vote_l~r=1) |   .2409249      .064119      .130928    .3818492

. 
. simqi, fd(prval(1) genpr(tr_pty_con)) changex(con 1 0 pty 0 1)

First Difference: con 1 0 pty 0 1

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
         dPr(vote_l~r = 1) |  -.1279586     .0922177    -.2984458    .0782085

Simqi generated the following new variable(s): tr_pty_con

. simqi, fd(prval(1) genpr(tr_vgd_con)) changex(con 1 0 vgd 0 1)

First Difference: con 1 0 vgd 0 1

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
         dPr(vote_l~r = 1) |    .069301     .0944112    -.1016892    .2750605

Simqi generated the following new variable(s): tr_vgd_con

. simqi, fd(prval(1) genpr(tr_psi_con)) changex(con 1 0 psi 0 1)

First Difference: con 1 0 psi 0 1

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
         dPr(vote_l~r = 1) |   .0063589     .0956054    -.1832242    .1974725

Simqi generated the following new variable(s): tr_psi_con

. simqi, fd(prval(1) genpr(tr_psp_con)) changex(con 1 0 psp 0 1)

First Difference: con 1 0 psp 0 1

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
         dPr(vote_l~r = 1) |  -.0415925     .0914148    -.2234581    .1412602

Simqi generated the following new variable(s): tr_psp_con

. 
. 
. setx median

. setx vgd 1

. setx vgd_D1 .325

. simqi, pr listx

You have set the following values for the explanatory variables:

------------------------------------
 Variable |    Value     Description
----------+-------------------------
      con |         0       median  
   con_D1 |         0       median  
      psi |         0       median  
   psi_D1 |         0       median  
      psp |         0       median  
   psp_D1 |         0       median  
      pty |         0       median  
   pty_D1 |         0       median  
      vgd |         1         1     
   vgd_D1 |      .325        .325   
------------------------------------


Quantities of interest based on those explanatory values:

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(vote_l~r=0) |   .6069872     .0636479     .4743637     .727817
            Pr(vote_l~r=1) |   .3930128     .0636479      .272183    .5256363

. 
. simqi, fd(prval(1) genpr(fd_vgd)) changex(vgd_D1 -.141 .895)

First Difference: vgd_D1 -.141 .895

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
         dPr(vote_l~r = 1) |   .2725832     .0961874     .0813784    .4538295

Simqi generated the following new variable(s): fd_vgd

. 
. 
. setx vgd_D1 0

. simqi, pr listx

You have set the following values for the explanatory variables:

------------------------------------
 Variable |    Value     Description
----------+-------------------------
      con |         0       median  
   con_D1 |         0       median  
      psi |         0       median  
   psi_D1 |         0       median  
      psp |         0       median  
   psp_D1 |         0       median  
      pty |         0       median  
   pty_D1 |         0       median  
      vgd |         1         1     
   vgd_D1 |         0         0     
------------------------------------


Quantities of interest based on those explanatory values:

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(vote_l~r=0) |   .6897741     .0710557     .5421524    .8144116
            Pr(vote_l~r=1) |   .3102259     .0710557     .1855883    .4578476

. 
. simqi, fd(prval(1) genpr(tr_pty_vgd)) changex(vgd 1 0 pty 0 1)

First Difference: vgd 1 0 pty 0 1

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
         dPr(vote_l~r = 1) |  -.1972597     .0969241    -.3887813    .0004319

Simqi generated the following new variable(s): tr_pty_vgd

. simqi, fd(prval(1) genpr(tr_psi_vgd)) changex(vgd 1 0 psi 0 1)

First Difference: vgd 1 0 psi 0 1

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
         dPr(vote_l~r = 1) |  -.0629422     .1019237    -.2722903    .1366612

Simqi generated the following new variable(s): tr_psi_vgd

. simqi, fd(prval(1) genpr(tr_psp_vgd)) changex(vgd 1 0 psp 0 1)

First Difference: vgd 1 0 psp 0 1

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
         dPr(vote_l~r = 1) |  -.1108936     .0942905    -.2999786    .0840421

Simqi generated the following new variable(s): tr_psp_vgd

. 
. 
. setx median

. setx pty 1

. setx pty_D1 .325

. simqi, pr listx

You have set the following values for the explanatory variables:

------------------------------------
 Variable |    Value     Description
----------+-------------------------
      con |         0       median  
   con_D1 |         0       median  
      psi |         0       median  
   psi_D1 |         0       median  
      psp |         0       median  
   psp_D1 |         0       median  
      pty |         1         1     
   pty_D1 |      .325        .325   
      vgd |         0       median  
   vgd_D1 |         0       median  
------------------------------------


Quantities of interest based on those explanatory values:

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(vote_l~r=0) |   .8255898      .066527     .6745873    .9350424
            Pr(vote_l~r=1) |   .1744102      .066527     .0649576    .3254127

. 
. simqi, fd(prval(1) genpr(fd_pty)) changex(pty_D1 -.141 .895)

First Difference: pty_D1 -.141 .895

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
         dPr(vote_l~r = 1) |   .2478544     .0929879     .0754772    .4357671

Simqi generated the following new variable(s): fd_pty

. 
. 
. setx pty_D1 0

. simqi, pr listx

You have set the following values for the explanatory variables:

------------------------------------
 Variable |    Value     Description
----------+-------------------------
      con |         0       median  
   con_D1 |         0       median  
      psi |         0       median  
   psi_D1 |         0       median  
      psp |         0       median  
   psp_D1 |         0       median  
      pty |         1         1     
   pty_D1 |         0         0     
      vgd |         0       median  
   vgd_D1 |         0       median  
------------------------------------


Quantities of interest based on those explanatory values:

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(vote_l~r=0) |   .8870338     .0655513     .7312203    .9769173
            Pr(vote_l~r=1) |   .1129662     .0655513     .0230827    .2687797

. 
. 
. setx median

. setx psi 1

. setx psi_D1 .325

. simqi, pr listx

You have set the following values for the explanatory variables:

------------------------------------
 Variable |    Value     Description
----------+-------------------------
      con |         0       median  
   con_D1 |         0       median  
      psi |         1         1     
   psi_D1 |      .325        .325   
      psp |         0       median  
   psp_D1 |         0       median  
      pty |         0       median  
   pty_D1 |         0       median  
      vgd |         0       median  
   vgd_D1 |         0       median  
------------------------------------


Quantities of interest based on those explanatory values:

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(vote_l~r=0) |   .6782152     .0662087     .5395316    .7996076
            Pr(vote_l~r=1) |   .3217848     .0662087     .2003924    .4604684

. 
. simqi, fd(prval(1) genpr(fd_psi)) changex(psi_D1 -.141 .895)

First Difference: psi_D1 -.141 .895

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
         dPr(vote_l~r = 1) |   .2545792     .1054862     .0569069    .4568796

Simqi generated the following new variable(s): fd_psi

. 
. 
. setx psi_D1 0

. simqi, pr listx

You have set the following values for the explanatory variables:

------------------------------------
 Variable |    Value     Description
----------+-------------------------
      con |         0       median  
   con_D1 |         0       median  
      psi |         1         1     
   psi_D1 |         0         0     
      psp |         0       median  
   psp_D1 |         0       median  
      pty |         0       median  
   pty_D1 |         0       median  
      vgd |         0       median  
   vgd_D1 |         0       median  
------------------------------------


Quantities of interest based on those explanatory values:

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(vote_l~r=0) |   .7527163     .0705567     .5999556    .8764563
            Pr(vote_l~r=1) |   .2472837     .0705567     .1235437    .4000444

. 
. 
. setx median

. setx psp 1

. setx psp_D1 .325

. simqi, pr listx

You have set the following values for the explanatory variables:

------------------------------------
 Variable |    Value     Description
----------+-------------------------
      con |         0       median  
   con_D1 |         0       median  
      psi |         0       median  
   psi_D1 |         0       median  
      psp |         1         1     
   psp_D1 |      .325        .325   
      pty |         0       median  
   pty_D1 |         0       median  
      vgd |         0       median  
   vgd_D1 |         0       median  
------------------------------------


Quantities of interest based on those explanatory values:

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(vote_l~r=0) |   .7503309     .0624299     .6215733    .8646055
            Pr(vote_l~r=1) |   .2496691     .0624299     .1353945    .3784267

. 
. simqi, fd(prval(1) genpr(fd_psp)) changex(psp_D1 -.141 .895)

First Difference: psp_D1 -.141 .895

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
         dPr(vote_l~r = 1) |   .1770033     .0930952    -.0082311    .3598327

Simqi generated the following new variable(s): fd_psp

. 
. 
. setx psp_D1 0

. simqi, pr listx

You have set the following values for the explanatory variables:

------------------------------------
 Variable |    Value     Description
----------+-------------------------
      con |         0       median  
   con_D1 |         0       median  
      psi |         0       median  
   psi_D1 |         0       median  
      psp |         1         1     
   psp_D1 |         0         0     
      pty |         0       median  
   pty_D1 |         0       median  
      vgd |         0       median  
   vgd_D1 |         0       median  
------------------------------------


Quantities of interest based on those explanatory values:

      Quantity of Interest |     Mean       Std. Err.    [95% Conf. Interval]
---------------------------+--------------------------------------------------
            Pr(vote_l~r=0) |   .8006676     .0651832      .661589    .9122885
            Pr(vote_l~r=1) |   .1993324     .0651832     .0877115     .338411

. 
. 
. * Difference in baseline probabilities
. 
. tabstat tr_vgd_con, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
  tr_vgd_con |   .069301  .0944112 -.2295819 -.0766091 -.0516938  .0659618  .1939194  .2385507  .3694914
--------------------------------------------------------------------------------------------------------

. tabstat tr_pty_con, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
  tr_pty_con | -.1279586  .0922177 -.4035071 -.2745076  -.237497 -.1320228 -.0150935  .0308122  .2294079
--------------------------------------------------------------------------------------------------------

. tabstat tr_psi_con, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
  tr_psi_con |  .0063589  .0956054 -.3369016 -.1500612 -.1119729   .006026  .1276287  .1612506  .3150038
--------------------------------------------------------------------------------------------------------

. tabstat tr_psp_con, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
  tr_psp_con | -.0415925  .0914148 -.3437133 -.1935623 -.1597204 -.0435423  .0784163  .1073206  .2034528
--------------------------------------------------------------------------------------------------------

. 
. 
. tabstat tr_pty_vgd, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
  tr_pty_vgd | -.1972597  .0969241 -.5061515 -.3507882 -.3143118 -.2011438 -.0723904 -.0365505  .2317098
--------------------------------------------------------------------------------------------------------

. tabstat tr_psi_vgd, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
  tr_psi_vgd | -.0629422  .1019237 -.3707711 -.2351171 -.1921894 -.0594511  .0688668  .0991804   .309911
--------------------------------------------------------------------------------------------------------

. tabstat tr_psp_vgd, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
  tr_psp_vgd | -.1108936  .0942905 -.3944474 -.2699337 -.2277795 -.1111485  .0120021  .0466612  .1723619
--------------------------------------------------------------------------------------------------------

. 
. 
. * Calculate difference in first differences
. 
. gen dif_vgd_con = fd_vgd - fd_con

. gen dif_pty_con = fd_pty - fd_con

. gen dif_psi_con = fd_psi - fd_con

. gen dif_psp_con = fd_psp - fd_con

. 
. tabstat dif_vgd_con, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
 dif_vgd_con |  .3063513   .125685 -.0684442  .1008607  .1463856  .3044307  .4716867  .5130719  .6961288
--------------------------------------------------------------------------------------------------------

. tabstat dif_pty_con, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
 dif_pty_con |  .2816226  .1307515 -.1593824  .0751275  .1220348   .278571  .4444069  .5026551  .6713904
--------------------------------------------------------------------------------------------------------

. tabstat dif_psi_con, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
 dif_psi_con |  .2883474   .135887 -.1786661  .0571136  .1133126   .291467  .4616609  .5067632  .7306418
--------------------------------------------------------------------------------------------------------

. tabstat dif_psp_con, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
 dif_psp_con |  .2107715  .1277959 -.2467911  .0024985  .0429102  .2121477  .3642995  .4119514  .5877904
--------------------------------------------------------------------------------------------------------

. 
. 
. gen dif_pty_vgd = fd_pty - fd_vgd

. gen dif_psi_vgd = fd_psi - fd_vgd

. gen dif_psp_vgd = fd_psp - fd_vgd

. 
. tabstat dif_pty_vgd, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
 dif_pty_vgd | -.0247288  .1341854 -.4760692 -.2372532  -.192113 -.0279857  .1467159  .1960625  .4968331
--------------------------------------------------------------------------------------------------------

. tabstat dif_psi_vgd, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
 dif_psi_vgd |  -.018004  .1451221 -.4225728 -.2601092 -.2067918  -.019645  .1675979   .206573  .5179247
--------------------------------------------------------------------------------------------------------

. tabstat dif_psp_vgd, s(mean sd min p5 p10 p50 p90 p95 max)

    variable |      mean        sd       min        p5       p10       p50       p90       p95       max
-------------+------------------------------------------------------------------------------------------
 dif_psp_vgd | -.0955799  .1371018 -.5057216 -.3199714 -.2698447 -.0995217  .0884862  .1378689  .3431008
--------------------------------------------------------------------------------------------------------

. 
. 
. drop b1-b10

. drop fd_con-dif_psp_vgd

. 
. log close
      name:  <unnamed>
       log:  ...\1805 Roadmaps\Table A7.log
  log type:  text
 closed on:  14 Jun 2018, 11:56:07
----------------------------------------------------------------------------------------------------------------------------
